home *** CD-ROM | disk | FTP | other *** search
- global gPaused, gWait4Rest, gGoatScore, gOgreScore, gRestart
-
- on beginSprite
- put the timer
- end
-
- on mouseUp
- if gRestart = 1 then
- startTimer()
- gRestart = 0
- end if
- if the timer > 40 then
- if (gGoatScore < 100) and (gOgreScore < 100) then
- if gWait4Rest = 1 then
- resetGame()
- gWait4Rest = 0
- end if
- sprite(120).visible = 0
- gPaused = 0
- end if
- end if
- end
-